Release 10.1A: OpenEdge Development:
.NET Open Clients
Passing a DATASET or DATASET-HANDLE as an INPUT parameter
When the client application passes a static ProDataSet (
DATASETparameter) as anINPUTparameter, the client must provide an instance of the strongly typed DataSet class provided by ProxyGen. In this case, the definition of the ProDataSet is known at compile time, and the proxy already knows the schema (meta data) for the ProDataSet, including the tables it contains; therefore, the client application does not need to supply the schema, only the data. The client can add rows to each of the tables within the dataset using theRows.Add()method on the DataTable class.When the client application passes a dynamic ProDataSet (
DATASET-HANDLEparameter) as anINPUTparameter, the proxy does not know the schema (meta data) for the ProDataSet. In this case, the client must provide an instance ofSystem.Data.DataSetthat contains both the schema and data for theDATASET-HANDLEparameter. The client can use the methods on theSystem.Data.DataSetclass to add the schema, tables, and rows for each table of the ProDataSet.Since all strongly typed DataSet classes inherit from
System.Data.DataSet, these classes can be passed for anINPUTDATASET-HANDLEparameter, as long as the 4GL procedure is written to process the schema and data provided in the strongly typed DataSet class.For
INPUTparameters, all the data must be put into the parameter before the proxy call is made.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |